package zh.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zh.demo.dao.VcardVisitDao;
import zh.demo.model.VcardVisitEntity;

import java.util.List;
import java.util.Map;




@Service("vcardVisitService")
public class VcardVisitService {
	@Autowired
	private VcardVisitDao vcardVisitDao;
	
	public VcardVisitEntity queryObject(Integer id){
		return vcardVisitDao.queryObject(id);
	}
	
	public List<VcardVisitEntity> queryList(Map<String, Object> map){
		return vcardVisitDao.queryList(map);
	}
	
	public int queryTotal(Map<String, Object> map){
		return vcardVisitDao.queryTotal(map);
	}
	
	public void save(VcardVisitEntity vcardVisit){
		vcardVisitDao.save(vcardVisit);
	}
	
	public void update(VcardVisitEntity vcardVisit){
		vcardVisitDao.update(vcardVisit);
	}
	
	public void delete(Integer id){
		vcardVisitDao.delete(id);
	}
	
	public void deleteBatch(Integer[] ids){
		vcardVisitDao.deleteBatch(ids);
	}
	
}
